import request from "@/utils/request";

// 查询左心房客户推送信息列表
export function listBizCustomer(query) {
  return request({
    url: "/biz/bizCustomer/list",
    method: "get",
    params: query,
  });
}

// 查询左心房客户推送信息列表
export function yslistBizCustomer(query) {
  return request({
    url: "/biz/bizCustomer/yslist",
    method: "get",
    params: query,
  });
}

// 查询左心房客户推送信息详细
export function getBizCustomer(id) {
  return request({
    url: "/biz/bizCustomer/" + id,
    method: "get",
  });
}

// 新增左心房客户推送信息
export function addBizCustomer(data) {
  return request({
    url: "/biz/bizCustomer",
    method: "post",
    data: data,
  });
}
//

// 修改左心房客户推送信息
export function updateBizCustomer(data) {
  return request({
    url: "/biz/bizCustomer",
    method: "put",
    data: data,
  });
}

// 删除左心房客户推送信息
export function delBizCustomer(id) {
  return request({
    url: "/biz/bizCustomer/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCustomer/findMaxSort",
    method: "get",
  });
}
// 导出左心房客户推送信息
export function exportBizCustomer(query) {
  return request({
    url: "/biz/bizCustomer/export",
    method: "get",
    params: query,
  });
}

// 导出广告成本
export function exportChengBen(query) {
  return request({
    url: "/biz/bizCustomer/exportChengBen",
    method: "get",
    params: query,
  });
}

// 手动分配
export function manualShare(query) {
  return request({
    url: "/biz/bizCustomer/manualShare",
    method: "get",
    params: query,
  });
}
// 我的客户zhuan
export function myShareCustomer(query) {
  return request({
    url: "/biz/bizCustomer/myShareCustomer",
    method: "get",
    params: query,
  });
}
// 修改状态
export function updateStatus(data) {
  return request({
    url: "/biz/bizCustomer/updateStatus",
    method: "post",
    data: data,
  });
}
/**
 * 根据手机号码查询用信息
 * @param {phone} query
 * @returns
 */
export function findCustomerByPhone(query) {
  return request({
    url: "/biz/bizCustomer/findCustomerByPhone",
    method: "get",
    params: query,
  });
}

// 查询协助客户
export function xieZuList(query) {
  return request({
    url: "/biz/bizCustomer/xieZuList",
    method: "get",
    params: query,
  });
}

// 公海
export function gonghailist(query) {
  return request({
    url: "/biz/bizCustomer/gonghailist",
    method: "get",
    params: query,
  });
}

// 接入线
export function alllist(query) {
  return request({
    url: "/biz/bizCustomer/alllist",
    method: "get",
    params: query,
  });
}
// 我的客户
export function listBizMyListCustomer(query) {
  return request({
    url: "/biz/bizCustomer/mylist",
    method: "get",
    params: query,
  });
}
// 成交客户
export function chenjiaolist(query) {
  return request({
    url: "/biz/bizCustomer/chenjiaolist",
    method: "get",
    params: query,
  });
}

// 线索客户
export function xiansuochilist(query) {
  return request({
    url: "/biz/bizCustomer/xiansuochilist",
    method: "get",
    params: query,
  });
}

// 团队线索客户
export function teamxiansuochilist(query) {
  return request({
    url: "/biz/bizCustomer/teamxiansuochilist",
    method: "get",
    params: query,
  });
}

// 统计广告成本
export function guanggaochengben(query) {
  return request({
    url: "/biz/bizCustomer/guanggaochengben",
    method: "get",
    params: query,
  });
}

// 统计广告成本合计
export function heJiGuanggaochengben(query) {
  return request({
    url: "/biz/bizCustomer/heJiGuanggaochengben",
    method: "get",
    params: query,
  });
}
// 工资统计
export function yuangonggongzitongji(query) {
  return request({
    url: "/biz/bizCustomer/yuangonggongzitongji",
    method: "get",
    params: query,
  });
}

// test websocket
export function testWebSocket(query) {
  return request({
    url: "/biz/bizCustomer/testWebSocketPc",
    method: "get",
    params: query,
  });
}
export function testWebSocket2(query) {
  return request({
    url: "/biz/bizCustomer/testWebSocketPc2",
    method: "get",
    params: query,
  });
}

// 打电话
export function playCall(query) {
  return request({
    url: "/biz/bizCustomer/playCall",
    method: "get",
    params: query,
  });
}

/**
 * 锁客
 * @param {id} query
 * @returns
 */
export function lockCustomer(query) {
  return request({
    url: "/biz/bizCustomer/lockCustomer",
    method: "get",
    params: query,
  });
}

export function lookPhone(query) {
  return request({
    url: "/biz/bizCustomer/lookPhone",
    method: "get",
    params: query,
  });
}
// 手动分配
export function manualShareBatch(query) {
  return request({
    url: "/biz/bizCustomer/manualShareBatch",
    method: "get",
    params: query,
  });
}
// 用户评级
export function customerClueRate(data) {
  return request({
    url: "/biz/bizCustomer/clueRate",
    method: "post",
    data: data,
  });
}
// 重点客户

export function updateHeart(data) {
  return request({
    url: "/biz/bizCustomer/updateHeart",
    method: "post",
    data: data,
  });
}
